#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>//定时器
#include <QTime>//时钟时间

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_star_clicked();
    void UpdateTime();

    void on_pushButton_stop_clicked();

    void on_pushButton_record_clicked();

    void on_pushButton_reset_clicked();

    void on_pushButton_clean_clicked();

private:
    Ui::Widget *ui;
    QTime  time;
    QTimer *timer;

};
#endif // WIDGET_H
